<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
<title>Mobilebone.js API文档-Mobilebone.handleTapEvent</title>
<link rel="stylesheet" href="../../src/mobilebone.css">
<link rel="stylesheet" href="../assets/docs.css">
</head>

<body>
<header id="header"></header>
<aside id="aside"></aside>
<div class="page out">
	<div class="content">
    	<h2>Mobilebone.handleTapEvent(event|element)</h2>
        <p><del>一般用在自定义事件方法上，类似：</del><pre><del>document.body.addEventListener('myCustomTapEvent', Mobilebone.handleTapEvent, false);</del></pre></p>
        <h3>参数</h3>
        <ul>
            <li><code>event</code> event对象或者<span style="color:#cd0000;">(v2.6.0+新增)</span> 也可以是元素对象，例如<code>&lt;a&gt;</code>元素，原生DOM对象，相当于执行点击该元素的行为表现。</li>
        </ul>
        <h3>使用示意</h3>
        <pre>document.body.addEventListener('myCustomTapEvent', Mobilebone.handleTapEvent, false);</pre>
        <p>v2.6.0+新增</p>
        <pre>Mobilebone.handleTapEvent(page.querySelector("a.btn"));</pre>
    </div>
</div>

<script src="../../src/mobilebone.js"></script>
<script>
Mobilebone.captureLink = false;
window.navKey = "handleTapEvent";
</script>
<script src="nav.js"></script>
<script src="../assets/docs.js"></script>
</body>
</html>
